import { BuildOutlined, FileTextOutlined, FolderOutlined } from '@ant-design/icons';
import { TreeNodeData } from '../types';

// 公司树数据
export const companyTreeData: TreeNodeData[] = [
  {
    title: '中国航空空间科技集团公司（2024合并）',
    key: 'company-1',
    icon: <BuildOutlined />,
    children: [
      {
        title: '中国航空空间科技集团有限公司（总部）',
        key: 'company-1-1',
        icon: <BuildOutlined />,
      },
      {
        title: '中国航空空间科技集团有限公司（主要子公司）',
        key: 'company-1-2',
        icon: <BuildOutlined />,
      },
      {
        title: '第一三五五光电空间技术有限公司（合并）',
        key: 'company-1-3',
        icon: <BuildOutlined />,
      },
    ],
  },
];

// 填报内容树数据
export const reportTreeData: TreeNodeData[] = [
  {
    title: '财务审定报表',
    key: 'report-1',
    icon: <FolderOutlined />,
    children: [
      {
        title: '资产',
        key: 'report-1-1',
        icon: <FileTextOutlined />,
      },
      {
        title: '负债',
        key: 'report-1-2',
        icon: <FileTextOutlined />,
      },
      {
        title: '利润',
        key: 'report-1-3',
        icon: <FileTextOutlined />,
      },
      {
        title: '现流',
        key: 'report-1-4',
        icon: <FileTextOutlined />,
      },
      {
        title: '现流附',
        key: 'report-1-5',
        icon: <FileTextOutlined />,
      },
      {
        title: '权益变动(本年)',
        key: 'report-1-6',
        icon: <FileTextOutlined />,
      },
      {
        title: '权益变动(上年)',
        key: 'report-1-7',
        icon: <FileTextOutlined />,
      },
      {
        title: '减值准备',
        key: 'report-1-8',
        icon: <FileTextOutlined />,
      },  
    ],
  },
];

// 表格数据
export const tableData = [
  { key: '1', item: '流动资产：', lineNumber: 1, endBalance: '0.00', beginBalance: '0.00' },
  { key: '2', item: '货币资金', lineNumber: 2, endBalance: '11,111.00', beginBalance: '2,222.00' },
  { key: '3', item: '△结算备付金', lineNumber: 3, endBalance: '0.00', beginBalance: '0.00' },
  { key: '4', item: '△拆出资金', lineNumber: 4, endBalance: '0.00', beginBalance: '0.00' },
  { key: '5', item: '交易性金融资产', lineNumber: 5, endBalance: '0.00', beginBalance: '10.00' },
];

// 表格列配置
export const tableColumns = [
  { title: '项', dataIndex: 'item', key: 'item', width: 200 },
  { title: '行次', dataIndex: 'lineNumber', key: 'lineNumber', width: 80 },
  { title: '期末余额', dataIndex: 'endBalance', key: 'endBalance', width: 120 },
  { title: '期初余额', dataIndex: 'beginBalance', key: 'beginBalance', width: 120 },
];
